$(function(){
    $("#searchPersonStatusCount_dategrid").datagrid_init;
    /*==初始化表格*/
    $('#searchPersonStatusCount_dategrid').datagrid({
        loadMsg : "数据加载中",
        emptyMsg : "数据加载完成,当前无数据!",
        border:false,
        fit : true,
        title : "人员情况汇总",
        fitColumns : true,
        pagination : true,
        rownumbers : true,
        singleSelect : true,
        // toolbar:"#searchPersonStatusCount_dategrid_toolbar",
        columns : [ [
            {field : 'id',				title : '主键',			width:50 , align:'center',hidden:true},
            {field : 'category',				title : '人员类别',			width:50 , align:'center',hidden:false,
                formatter: function(value,row,index){
                    return 	value;
                }
            },
            {field : 'inperson',			title : '进场登记人数 ',		width:50 , align:'center',hidden:false,
                formatter: function(value,row,index){
                    return 	value;
                }
            },

            {field : 'currentperson',			title : '当前阶段活跃人数 ',		width:50 , align:'center',hidden:false,
                formatter: function(value,row,index){
                    return value;
                }
            },
            {field : 'outperson',				title : '当前阶段退场人数',			width:50 , align:'center',hidden:false,
                formatter: function(value,row,index){
                    return value;
                }
            }
        ] ],
        onLoadSuccess:function(data){
            $(this).datagrid('doCellTip',{'max-width':'300px','delay':500});
        }
    });

    var params = {};
    $("#searchPersonStatusCount_dategrid").datagrid_pagination(basepath+"/user/v1/selectRecordCount",JSON.stringify(params),"","" );

    /*查询按钮*/
    /*$("#searchPersonStatusCount_btn_search").linkbutton({
        onClick:function(){
            var name = $("#searchPersonStatusCount_Name").textbox("getValue");
            var datebegin=$.trim($("#searchPersonStatusCount_DateBegin").datetimebox('getValue'));
            var dateend=$.trim($("#searchPersonStatusCount_DateEnd").datetimebox('getValue'));
            var params = {};
            params.name = name;
            params.datebegin = datebegin;
            params.dateend = dateend;
            $("#searchPersonStatusCount_dategrid").datagrid_pagination(basepath+"/user/v1/selectRecordCount",JSON.stringify(params),"","" );
        }
    });*/

});
	